import { request } from '../utils/request'

async function putTaskOperate(taskId, operType, operator) {
  const { data } = await request.put('/task/operate', { operType, uid: operator.userId, did: operator.deviceId }, { params: { taskId } })
  return data
}

async function manualWarn(data) {
  return request({
    url: '/manualWarn/operate',
    method: 'post',
    data: data
  })
}

export { putTaskOperate, manualWarn }
